import {
  API_VERSION,
  PAAS_URL
} from '@/common/config.js';
const publicApi = {
  postRecommentGoods: `/${API_VERSION}/5fd9a32379116`, //智能推荐
  numberOfShoppingCart: `/${API_VERSION}/62c6909e6ce4f`,//获取购物车数量
  publicUpdateAPP: `/${API_VERSION}/6423fb49bc82c`, // 静默更新
  queryAutograph: `/v1/6454d9663e508`, // 获取oss配置接口
	getAreaData: `/v1/6789c02f24420`, // 获取地址信息列表
  UPLOAD_IMAGE_URL: `/${API_VERSION}/5d5fa8984f0c2`, // 本地图片上传接口
  // UPLOAD_FILE_URL: `/${API_VERSION}/5d5fa8984f0c2`, // 文件上传接口
  GetVerifyCode: `/${API_VERSION}/5b5bdc44796e8`, // 发送验证码
  getVerifyCodeNew: `/${API_VERSION}/666a45d4d6bb4`, //新版验证码
  beforeGetVerifyCodeNew: `/${API_VERSION}/6668f5d1d434e`, // 新版验证码前置接口
  post6821ad4530cb9:`/${API_VERSION}/6821ad4530cb9`, //查询新闻列表
post6822a00370748:`/${API_VERSION}/6822a00370748`, //查询轮播图
post6763be29aeab5:`/${API_VERSION}/6763be29aeab5`, //查询产品分类
post67385eff67f39:`/${API_VERSION}/67385eff67f39`, //查询安全知识管理
post674ed2de69836:`/${API_VERSION}/674ed2de69836`, //查询新闻列表
post6821ad8c6075d:`/${API_VERSION}/6821ad8c6075d`, //查询新闻详情
post6768d897841d0:`/${API_VERSION}/6768d897841d0`, //查询产品详情
post6892abaa91dfe:`/${API_VERSION}/6892abaa91dfe`, //展示状态
}
const pageFiles = require.context('../../pages/', true, /\api.js$/);
const pageApis = pageFiles.keys().reduce((modules, modulePath) => {
  const value = pageFiles(modulePath);
  if ((typeof value == 'object') && value.default) Object.assign(modules, value.default);
  return modules;
}, publicApi);
const modulesFiles = require.context('../../components/', true, /\api.js$/);
const modules = modulesFiles.keys().reduce((modules, modulePath) => {
  const value = modulesFiles(modulePath);
  if ((typeof value == 'object') && value.default) Object.assign(modules, value.default);
  return modules;
}, pageApis);
export default modules;
